package com.lonely.purchase.domain.dto.remainingmaterialinventory;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: 黄志标
 * @date: 2025/6/25 15:38
 * @description: 余料库存编辑实体
 */
@Data
public class RemainingMaterialInventorySubmitDTO implements Serializable {

    /**
     * 主键id
     */
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 库存位置
     */
    private String inventoryLocation;

    /**
     * 余料数量
     */
    @NotNull(message = "余料数量不能为空")
    @Min(value = 0, message = "余料数量不能小于0")
    private Integer remainingMaterialQuantity;

}
